<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<title>我的团体</title>
		<link rel="stylesheet" type="text/css" href="../../css/aui-win.css"/>
		<style>
            /*头部样式*/
            #back{
                background: transparent;
            }
            body{
                background:#E0E0E0;
            }
            div{
                width:100%;
                /*background:#E0E0E0;*/
                text-align:center;
            }
            .innerContent label{
            	font-size:16px;
            	text-indent:1em;
            }
            span{
                margin-top:200px;
                font-size: 20px;
            }
            /*显示隐藏的CSS*/
            .noMsg{ display: none; }
            .hasMsg{ display:block;}
            /*中间样式开始*/
            #groupListDiv .row{
                padding: 10px 1%;
                width: 98%;
                height: 70px;
                border-bottom: 1px solid #7f7f7f;
                /*background: red;*/
            }
            #groupListDiv .row img{
                float: left;
                margin-right: 5px;
                width: 70px;
                height: 70px;
            }
            .innerContent{
                float: left;
                /*margin-left: -70px;*/
                /*width: auto;*/
                /*height: auto;*/
                width: 73%;
                height: 70px;
                /*background: green;*/
                line-height:70px;
               	text-align:left;
               	padding-left:2%;
            }
		</style>
	</head>
	<body>
    
      <header class="aui-bar aui-bar-nav aui-bar-yunzo" id="aui-header">
		<a class="aui-btn aui-bar-yunzo aui-pull-left" id="back" onclick="back_go()"> <span class="aui-iconfont aui-icon-left"></span></a>
		<div class="aui-title" id="title">
			会员团体信息
		</div>
		<a class="aui-iconfont aui-icon-menu aui-pull-right"></a>
	</header>
	<div class="margin_div"></div>
    <div id="groupListDiv"  >
        <!--<div class="row">-->
            <!--<img  alt="logo"/>-->
            <!--<div class="innerContent">-->
                <!--<label id="title"></label>-->
            <!--</div>-->
        <!--</div>-->
    </div>
    <!--test-loading-->
    <!--<ul>-->
        <!--<li id="loadIng_startStop">-->
            <!--<img src="../../image/my/loading_more.gif" alt="loading_img"/>-->
        <!--</li>-->
    <!--</ul>-->
    <!--加载loading功能-->
       <div class="div_loding_img">
		数据加载中
	</div>
	</body>
    <script type="text/javascript" src="../../script/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../../script/common.js"></script>

    <script>
        /*ty-2015-11-22*/
        /*返回上级页面*/

        /*获取我的团体列表*/
        //        var baseDatas = basedata('myinfo');
        var pagesize=5;
        var bodyParam={
            mid:getUrlParam("infoid"),
            groupid:$groupid,
            did:initdata.get('mycompany'),
            pagesize:pagesize
        };
        /*loading加载转圈*/
        sTart_Stop();
        ajaxcocRequest("../../../api/account/getmygroupinfolist","POST",bodyParam,function(msg){
//            console.log(msg);
            var str="";
            if(msg.code==100){
                if(msg.data.length==0){
                	$("#groupListDiv").html("<div style='width:20%;margin:40px 0 0 40%;'><img src='../../image/gantan.png' style='width:100%;'></div><p style='width:100%;text-align:center;margin-top:30px;color:#999;font-size:18px;'>他(她)还没有添加团体信息！</p>")
                }else{
                    $("#groupList").attr("class","noMsg");
                    for(var j=0;j<msg.data.length;j++){
                        str += "<div class='row' onclick='opengroupinf(\""+msg.data[j].n0+"\")' >";
                        str += "<img  alt='logo' src='"+msg.data[j].n1+"'/>";
                        str += "<div class='innerContent'>";
                        str += "<label id='title'>"+msg.data[j].n2+"</label>";
                        str += "</div></div>";
                    }
                    $("#groupListDiv").html(str);


                }
            }else{
            	$("body").append('<div class="wuwang"><img src="../../image/iconfont-wangluo.png"><p>网络拥堵，信息塞车</p></div>')
            }
        });

        function opengroupinf(gid)
        {
            openpageparam("../first_frame/groupinfo.html","gid="+gid);
        }
    function rec(){
    	window.history.go(-1);
    }
    </script>

</html>